package com.dj.mingkong.admin.biz.enums;


/**
 * 数据同步状态枚举
 *
 * @author zenglonghui
 * @date: 2023/7/17 16:02
 */
public enum SyncStatusEnum {

    /**
     * 同步中
     */
    SYNCING(0, "同步中"),

    /**
     * 同步成功
     */
    SYNC_SUCCESS(1, "同步成功"),

    /**
     * 同步异常
     */
    SYNC_ERROR(2, "同步异常");

    private final Integer intVal;
    private final String desc;

    SyncStatusEnum(Integer intVal, String desc) {
        this.intVal = intVal;
        this.desc = desc;
    }

    public Integer getIntVal() {
        return intVal;
    }

    public String getDesc() {
        return desc;
    }

    public boolean equalsIntVal(Integer intVal) {
        return this.intVal.equals(intVal);
    }
}
